package com.ruoyi.adapayBalancepay.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.adapayBalancepay.mapper.AdapayBalancepayMapper;
import com.ruoyi.adapayBalancepay.domain.AdapayBalancepay;
import com.ruoyi.adapayBalancepay.service.IAdapayBalancepayService;

/**
 * 余额支付记录Service业务层处理
 *
 * @author ch
 * @date 2022-03-03
 */
@Service
public class AdapayBalancepayServiceImpl implements IAdapayBalancepayService
{
    @Autowired
    private AdapayBalancepayMapper adapayBalancepayMapper;

    /**
     * 查询余额支付记录
     *
     * @param id 余额支付记录主键
     * @return 余额支付记录
     */
    @Override
    public AdapayBalancepay selectAdapayBalancepayById(Long id)
    {
        return adapayBalancepayMapper.selectAdapayBalancepayById(id);
    }

    /**
     * 查询余额支付记录列表
     *
     * @param adapayBalancepay 余额支付记录
     * @return 余额支付记录
     */
    @Override
    public List<AdapayBalancepay> selectAdapayBalancepayList(AdapayBalancepay adapayBalancepay)
    {
        return adapayBalancepayMapper.selectAdapayBalancepayList(adapayBalancepay);
    }

    /**
     * 新增余额支付记录
     *
     * @param adapayBalancepay 余额支付记录
     * @return 结果
     */
    @Override
    public int insertAdapayBalancepay(AdapayBalancepay adapayBalancepay)
    {
        return adapayBalancepayMapper.insertAdapayBalancepay(adapayBalancepay);
    }

    /**
     * 修改余额支付记录
     *
     * @param adapayBalancepay 余额支付记录
     * @return 结果
     */
    @Override
    public int updateAdapayBalancepay(AdapayBalancepay adapayBalancepay)
    {
        return adapayBalancepayMapper.updateAdapayBalancepay(adapayBalancepay);
    }

    /**
     * 批量删除余额支付记录
     *
     * @param ids 需要删除的余额支付记录主键
     * @return 结果
     */
    @Override
    public int deleteAdapayBalancepayByIds(Long[] ids)
    {
        return adapayBalancepayMapper.deleteAdapayBalancepayByIds(ids);
    }


    /**
     * 批量逻辑删除余额支付记录
     *
     * @param ids 需要删除的余额支付记录主键
     * @return 结果
     */
    @Override
    public int logicDeleteAdapayBalancepay(Long[] ids,String delType,Long delUser)
    {
        return adapayBalancepayMapper.logicDeleteAdapayBalancepay(ids,delType,delUser);
    }

    /**
     * 删除余额支付记录信息
     *
     * @param id 余额支付记录主键
     * @return 结果
     */
    @Override
    public int deleteAdapayBalancepayById(Long id)
    {
        return adapayBalancepayMapper.deleteAdapayBalancepayById(id);
    }
}
